package com.infore.siteManagement.entity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
/**
 * The persistent class for the PROJECT_TYPE database table.
 * 指标类型实体类
 * llf
 */
@Entity
@Table(name="PROJECT_TYPE")
@NamedQuery(name="ProjectType.findAll", query="SELECT p FROM ProjectType p")
public class ProjectType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="PROJECT_TYPE_ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String projectTypeId;

	/**创建时间**/
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") 
	@Column(name="CREATE_TIME")
	private Date createTime;

	/**最新修改时间**/
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") 
	@Column(name="LAST_UPDATE_TIME")
	private Date lastUpdateTime;

	/**指标类型名称**/
	@Column(name="PROJECT_TYPE_NAME")
	private String projectTypeName;

	/**备注**/
	@Column(name = "REMARK")
	private String remark;
	
	/**父id**/
	@Column(name = "PARENT_ID")
	private String parentId;

	/**状态**/
	@Column(name = "STATUS")
	private Integer status;

	public ProjectType() {
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getProjectTypeId() {
		return this.projectTypeId;
	}

	public void setProjectTypeId(String projectTypeId) {
		this.projectTypeId = projectTypeId;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getProjectTypeName() {
		return this.projectTypeName;
	}

	public void setProjectTypeName(String projectTypeName) {
		this.projectTypeName = projectTypeName;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}